<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>申报成功</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="#(basePath)/static/jquery-weui/css/weui.min.css">
    <link rel="stylesheet" href="#(basePath)/static/jquery-weui/css/jquery-weui.min.css">
    <link rel="stylesheet" href="#(basePath)/static/web/index/css/index.css">
</head>
<body>
#if(data.type??=='4')
<div class="weui-msg">
    <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">
            续期成功
        </h2>
        <p class="weui-msg__desc">您所提交的续期申请已通过，接下来我局将委派邮政揽件，请耐心等待信息</p>
    </div>
    <div class="weui-msg__opr-area">
        <p class="weui-btn-area">
            <a href="javascript:void(0);" class="weui-btn weui-btn_primary showLicense">查询证件信息</a>
            <a href="#(basePath)/wfw/spyxmp/applyItem/toSbls" class="weui-btn weui-btn_primary">申报历史</a>
            <a href="#(basePath)/toIndex" class="weui-btn weui-btn_default">返回首页</a>
        </p>
    </div>
</div>
#else
#if(data.type??=='3')
<div class="weui-msg">
    <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">
            变更成功
        </h2>
        <p class="weui-msg__desc">您所提交的变更申请已通过，接下来我局将委派邮政揽件，请耐心等待信息</p>
    </div>
    <div class="weui-msg__opr-area">
        <p class="weui-btn-area">
            <a href="javascript:void(0);" class="weui-btn weui-btn_primary showLicense">查询证件信息</a>
            <a href="#(basePath)/wfw/spyxmp/applyItem/toSbls" class="weui-btn weui-btn_primary">申报历史</a>
            <a href="#(basePath)/toIndex" class="weui-btn weui-btn_default">返回首页</a>
        </p>
    </div>
</div>
#else
#if(data.type??=='2')
<div class="weui-msg">
    <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">
            注销成功
        </h2>
        <p class="weui-msg__desc">您所提交的注销申请已通过，接下来我局将委派邮政揽件，回收《食品经营许可证》，请耐心等待信息</p>
    </div>
    <div class="weui-msg__opr-area">
        <p class="weui-btn-area">
            <a href="javascript:void(0);" class="weui-btn weui-btn_primary showLicense">查看《注销决定书》</a>
            <a href="#(basePath)/wfw/spyxmp/applyItem/toSbls" class="weui-btn weui-btn_primary">申报历史</a>
            <a href="#(basePath)/toIndex" class="weui-btn weui-btn_default">返回首页</a>
        </p>
    </div>
</div>
#else
<div class="weui-msg">
    <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">
            补证成功
        </h2>
        <p class="weui-msg__desc">您所提交的补证申请已通过，接下来我局将委派邮政揽件，回收相关证件，请耐心等待信息</a></p>
    </div>
    <div class="weui-msg__opr-area">
        <p class="weui-btn-area">
            #if("SPYXMP_SPJYXKZ,SPYXMP_YPJYXKZ".contains(data.TABLENAME))
            <a href="javascript:void(0);" class="weui-btn weui-btn_primary showLicense">查询证件信息</a>
            #end
            <a href="#(basePath)/wfw/spyxmp/applyItem/toSbls" class="weui-btn weui-btn_primary">申报历史</a>
            <a href="#(basePath)/toIndex" class="weui-btn weui-btn_default">返回首页</a>
        </p>
    </div>
</div>
#end
#end
#end
#include("/WEB-INF/main/footer-spyxmp.html")
<script src="http://jqweui.com/dist/js/swiper.js"></script>
<script type="text/javascript">
    var licensePhoto = false;

    $(".showLicense").click(function() {
        if(!licensePhoto){
            $.ajax({
                url: getRootPath() + '/wfw/spyxmp/file/licensePath',
                data: {sblsh: UrlParam.param('sblsh')},
                async: false,
                contentType: "application/x-www-form-urlencoded;charset=UTF-8",
                success: function (response, textStatus, XMLHttpRequest) {
                    if (response.success) {
                        if (response.data.length > 0) {
                            var items = [];
                            for (var i = 0; i < response.data.length; i++) {
                                var data = response.data[i];
                                items.push({
                                    image: getRootPath() + data.FILEPATH,
                                    caption: data.FILENAME
                                })
                            }
                            licensePhoto = $.photoBrowser({
                                items: items,
                                initIndex: 0
                            });
                        }
                    }
                }
            })

        }

        licensePhoto.open();
    });
</script>
</body>
</html>